<?php

class IndexController extends Zend_Controller_Action
{

    public function init() {
               
        
   } 

    public function indexAction()
    {
        $links = array (  "styles/css/hmenu.css", "styles/css/main.css", "scripts/jgraph/library/themes/base/jquery.ui.tabs.css", "scripts/jgraph/library/themes/base/jquery.ui.all.css", "scripts/jgraph/library/themes/base/jquery.ui.autocomplete.css",  "scripts/jgraph/library/themes/base/jquery.ui.accordion.css", "scripts/jgraph/library/themes/base/jquery.ui.all.css","scripts/jgraph/library/themes/base/jquery.ui.base.css", "scripts/jgraph/library/themes/base/jquery.ui.button.css", "scripts/jgraph/library/themes/base/jquery.ui.core.css", "scripts/jgraph/library/themes/base/jquery.ui.datepicker.css", "scripts/jgraph/library/themes/base/jquery.ui.dialog.css", "scripts/jgraph/library/themes/base/jquery.ui.progressbar.css", "scripts/jgraph/library/themes/base/jquery.ui.resizable.css", "scripts/jgraph/library/themes/base/jquery.ui.selectable.css", "scripts/jgraph/library/themes/base/jquery.ui.slider.css",  "scripts/jgraph/library/themes/base/jquery.ui.theme.css", "scripts/jgraph/library/themes/ui-lightness/jquery-ui-1.8.16.custom.css", "scripts/jgraph/library/themes/ui-lightness/jquery.ui.accordion.css", "scripts/jgraph/library/themes/ui-lightness/jquery.ui.all.css", "scripts/jgraph/library/themes/ui-lightness/jquery.ui.autocomplete.css", "scripts/jgraph/library/themes/ui-lightness/jquery.ui.base.css", "scripts/jgraph/library/themes/ui-lightness/jquery.ui.button.css", "scripts/jgraph/library/themes/ui-lightness/jquery.ui.core.css", "scripts/jgraph/library/themes/ui-lightness/jquery.ui.datepicker.css", "scripts/jgraph/library/themes/ui-lightness/jquery.ui.dialog.css", "scripts/jgraph/library/themes/ui-lightness/jquery.ui.progressbar.css", "scripts/jgraph/library/themes/ui-lightness/jquery.ui.resizable.css", "scripts/jgraph/library/themes/ui-lightness/jquery.ui.selectable.css", "scripts/jgraph/library/themes/ui-lightness/jquery.ui.slider.css", "scripts/jgraph/library/themes/ui-lightness/jquery.ui.tabs.css", "scripts/jgraph/styles/diagram.css","scripts/jgraph/styles/demos.css");
		foreach ( $links as $val ) {
			$url = $this->view->baseUrl ( $val );
			$this->view->headLink ()->appendStylesheet ( $url );
		}
     $scripts = array ("scripts/jqueryautoslide/widget/lib/jquery-1.7.1.js", "scripts/jqueryautoslide/widget/lib/jquery.ui.core.min.js", "scripts/jqueryautoslide/widget/lib/jquery.ui.widget.min.js", "scripts/jqueryautoslide/widget/lib/jquery.ui.widget.js", "scripts/jqueryautoslide/widget/lib/jquery.ui.rcarousel.min.js", "scripts/jqueryautoslide/widget/lib/jquery.ui.rcarousel.js");		
        foreach ( $scripts as $key => $val ) {
			if (is_array ( $val )) {
				$url = $this->view->baseUrl ( $key );
				$this->view->headScript ()->appendFile ( $url, 'javascript', $val );
			} else {
				$url = $this->view->baseUrl ( $val );
				$this->view->headScript ()->appendFile ( $url, 'text/javascript' );
			}  
                } 
        
    }
    
    public function servermappingAction()
    {
        // action body
        //return $this->_redirect('/user/home');
        
    }
    
    public function monitoringAction()
    {
         $links = array (  "styles/css/hmenu.css", "styles/css/mhead.css");
		foreach ( $links as $val ) {
			$url = $this->view->baseUrl ( $val );
			$this->view->headLink ()->appendStylesheet ( $url );
		}
     $scripts = array ("scripts/jqueryautoslide/widget/lib/jquery-1.7.1.js", "scripts/jqueryautoslide/widget/lib/jquery.ui.core.min.js", "scripts/jqueryautoslide/widget/lib/jquery.ui.widget.min.js", "scripts/jqueryautoslide/widget/lib/jquery.ui.widget.js", "scripts/jqueryautoslide/widget/lib/jquery.ui.rcarousel.min.js", "scripts/jqueryautoslide/widget/lib/jquery.ui.rcarousel.js");		
        foreach ( $scripts as $key => $val ) {
			if (is_array ( $val )) {
				$url = $this->view->baseUrl ( $key );
				$this->view->headScript ()->appendFile ( $url, 'javascript', $val );
			} else {
				$url = $this->view->baseUrl ( $val );
				$this->view->headScript ()->appendFile ( $url, 'text/javascript' );
			}  
                } 
        
    }
    
    public function pricingAction()
            {
         $links = array (  "styles/css/hmenu.css", "styles/css/mhead.css");
		foreach ( $links as $val ) {
			$url = $this->view->baseUrl ( $val );
			$this->view->headLink ()->appendStylesheet ( $url );
		}
     $scripts = array ("scripts/jqueryautoslide/widget/lib/jquery-1.7.1.js", "scripts/jqueryautoslide/widget/lib/jquery.ui.core.min.js", "scripts/jqueryautoslide/widget/lib/jquery.ui.widget.min.js", "scripts/jqueryautoslide/widget/lib/jquery.ui.widget.js", "scripts/jqueryautoslide/widget/lib/jquery.ui.rcarousel.min.js", "scripts/jqueryautoslide/widget/lib/jquery.ui.rcarousel.js");		
        foreach ( $scripts as $key => $val ) {
			if (is_array ( $val )) {
				$url = $this->view->baseUrl ( $key );
				$this->view->headScript ()->appendFile ( $url, 'javascript', $val );
			} else {
				$url = $this->view->baseUrl ( $val );
				$this->view->headScript ()->appendFile ( $url, 'text/javascript' );
			}  
                } 
        
    }
    
}

